Skip to content

MPT-22539 normalize trailing newlines to satisfy end-of-file-fixer#356

Merged
jentyk merged 1 commit into
mainfrom
feature/MPT-22539/normalize-trailing-newlines-on-files-failing-end-file-fixer-pre-commit-hook
Jun 23, 2026
Merged

MPT-22539 normalize trailing newlines to satisfy end-of-file-fixer#356
jentyk merged 1 commit into
mainfrom
feature/MPT-22539/normalize-trailing-newlines-on-files-failing-end-file-fixer-pre-commit-hook

Conversation

@jentyk

@jentyk jentyk commented Jun 23, 2026

Copy link
Copy Markdown
Member

🤖 AI-generated PR — Please review carefully.

What

Normalize end-of-file whitespace on the 13 tracked files that fail the repository's end-of-file-fixer pre-commit hook.

  • The four docs/*.md files ended with multiple trailing blank lines.
  • The nine helpdesk/mixins __init__.py package markers each held a lone blank line.

end-of-file-fixer enforces "ends with exactly one newline, or is empty", so this trims the docs files to a single trailing newline and reduces the empty package markers to 0 bytes.

Why

uv run pre-commit run --all-files reported all 13 files as Fixing ... on every run, leaving a dirty worktree and noise for anyone running the hooks locally. Pure repo hygiene — no behavior change.

Notes for reviewers

  • Pure end-of-file whitespace normalization. Each file's body is byte-identical up to its trailing whitespace (verified by comparing working-tree bytes against HEAD). The diff is 21 deletions, 0 insertions.
  • The nine __init__.py files become 0 bytes — still valid, empty Python package markers.
  • After the change, uv run pre-commit run end-of-file-fixer --all-files passes clean.

Jira: MPT-22539

Closes MPT-22539

  • Normalize trailing newlines across 13 files to comply with the end-of-file-fixer pre-commit hook
    • Trim 4 documentation files (docs/e2e_tests.md, docs/local-development.md, docs/rql.md, docs/unit_tests.md) to end with a single trailing newline
    • Reduce 9 empty __init__.py package markers in test directories to 0 bytes
  • Resolve repeated "Fixing..." reports from end-of-file-fixer hook that was leaving the worktree dirty
  • No functional changes—pure whitespace normalization with file bodies remaining byte-identical up to trailing whitespace

…22539]

Thirteen tracked files tripped the repository's end-of-file-fixer
pre-commit hook because they ended with excess trailing blank lines
rather than a single newline, so `pre-commit run --all-files` kept
reporting them as "Fixing ...".

The four docs/*.md files ended with multiple blank lines and the nine
helpdesk/mixins __init__.py package markers each held a single blank
line. Normalize every file to the hook's rule: end with exactly one
newline, or be empty for the otherwise-empty package markers.

This is pure end-of-file whitespace normalization. File bodies are
byte-identical up to the trailing whitespace and there is no behavior
change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jentyk jentyk requested a review from a team as a code owner June 23, 2026 20:47
@jentyk jentyk requested review from albertsola and robcsegal June 23, 2026 20:47
@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

✅ Found Jira issue key in the title: MPT-22539

Generated by 🚫 dangerJS against 894d49f

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

No new commits to review since the last review.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: f8e4aca7-5a6d-4142-8e01-6980f6a855fe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Four documentation files are updated: trailing blank lines are removed from docs/e2e_tests.md, docs/local-development.md, and docs/rql.md, and a typo in the mocking-rules link text in docs/unit_tests.md is corrected. Several empty __init__.py files also have a trailing blank line removed.

Changes

Documentation cleanup

Layer / File(s) Summary
Trailing line removal and typo fix
docs/e2e_tests.md, docs/local-development.md, docs/rql.md, docs/unit_tests.md, tests/e2e/helpdesk/.../__init__.py, tests/unit/resources/mixins/__init__.py
Removes trailing blank lines from doc files and empty __init__.py files; fixes a misspelled anchor label in the "Unit tests mocking" section of docs/unit_tests.md.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Documentation Up To Date ✅ Passed Pure end-of-file whitespace normalization with no code, behavior, or functionality changes; falls under "genuinely has no documentation impact" exception (analogous to refactors).

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@jentyk

jentyk commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@jentyk

jentyk commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
✅ Action performed

Comments resolved and changes approved.

@jentyk jentyk merged commit 4506e1d into main Jun 23, 2026
7 checks passed
@jentyk jentyk deleted the feature/MPT-22539/normalize-trailing-newlines-on-files-failing-end-file-fixer-pre-commit-hook branch June 23, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants